/*
 * Class name: 			SRequest
 * Class description: 	The SRequest class is the class interface between
 * 						the back-end and the front end, it is a representative
 * 						class of GroupRequest without the conflicting back-end
 * 						fields and libraries
 * Project:				GrocerWE
 */
package com.cse210.grocerwe.client;

import java.io.Serializable;

public class SRequest implements Serializable{

	//used for serialization
	private static final long serialVersionUID = 1L;
	
    //string representation of key
	private String key;
	
    //user to be invited 
    private String user;
    
    //owner/creator of group
    private String owner;
    
    //name of the group for easy display
    private String groupname;
    
    //foreign key of group
    private String group;
    
    
    /*
     * Constructor
     */
    public SRequest()
    {
    	this.key = null;
    	this.user = null;
    	this.owner = null;
    	this.groupname = null;
    	this.group = null;
    } 
    public SRequest(String key, String user,String owner, String groupname, String group)
    {
    	this.key = key;
    	this.user = user;
    	this.owner = owner;
    	this.groupname = groupname;
    	this.group = group;
    }
    
    /*
     * Getters
     */
    public String getKey()
    {
    	return key;
    }
    public String getUser()
    {
    	return user;
    }
    public String getOwner()
    {
    	return owner;
    }
    public String getGroupName()
    {
    	return groupname;
    }
    public String getGroup()
    {
    	return group;
    }

}
